package com.bestv.search.common.dao;

import com.bestv.search.common.model.SearchKeyword;

import java.util.List;
import java.util.Map;

/**
 * @author Michael Wang
 */
public interface SearchKeywordDao extends GenericDao<SearchKeyword, Long> {

    void saveSearchKeywordList(List<SearchKeyword> keywordList);

    Map<String, Integer> sumEachKeyword();

    void removeAllKeywords();

    List<SearchKeyword> getSearchKeywords(String keyword);

    List<SearchKeyword> getTimeSortedKeywords();
}
